package lv.solcraft.replication.server.api;

import java.util.List;

import net.sf.json.JSONArray;

import lv.solcraft.replication.server.model.Oper;
import lv.solcraft.replication.server.model.OperStateUpdate;

public interface ServerFacade {

    void save(List<Oper> opers);

    void saveJSON(long siteId, JSONArray array);

    List<Oper> getFirstNewOpers(long siteId);

    void updateStates(List<OperStateUpdate> operStates);

    void updateStatesJSON(long siteId, JSONArray array);

    JSONArray getFirstNewOpersJSON(long siteId);
}
